﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace Century.Model
{
    public class Country
    {
        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [MaxLength(128)]
        public string Name { get; set; }

        [MaxLength(6)]
        public string Code { get; set; }

        public bool IsFSA { get; set; }

        public int SortOrder { get; set; }

        public int ContinentId { get; set; }

        public Continent Continent { get; set; }
      
        public ICollection<UserProfile> UserProfilesByNationalities { get; set; }
       
        //public ICollection<UserProfile> UserProfilesByCountryOfResidences { get; set; }

        public ICollection<Province> Provinces { get; set; }

    }
}